import 'package:get/get.dart';

// 数据库表的键
class DbTables {
  static const String id = "table_id";
  static const String users = "users";
  static const String vehicles = "vehicles";
  static const String logs = "logs";
  static const String realtimeData = "realtime_data";

  // 通过 title 获取键
  static String? getTypeByTitle(String title) {
    const keys = [id, users, vehicles, realtimeData];
    return keys.firstWhereOrNull((key) => key == title);
  }
}
